<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>随便打TCS系统</title>

<!-- Bootstrap -->
<link href="<%=basePath%>vendors/bootstrap/dist/css/bootstrap.min.css"
	rel="stylesheet">
<!-- Font Awesome -->
<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
	rel="stylesheet">
<!-- NProgress -->
<link href="<%=basePath%>vendors/nprogress/nprogress.css"
	rel="stylesheet">
<!-- iCheck -->
<link href="<%=basePath%>vendors/iCheck/skins/flat/green.css"
	rel="stylesheet">

<!-- bootstrap-progressbar -->
<link
	href="<%=basePath%>vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css"
	rel="stylesheet">
<!-- JQVMap -->
<link href="<%=basePath%>vendors/jqvmap/dist/jqvmap.min.css"
	rel="stylesheet" />
<!-- bootstrap-daterangepicker -->
<link
	href="<%=basePath%>vendors/bootstrap-daterangepicker/daterangepicker.css"
	rel="stylesheet">

<!-- Custom Theme Style -->
<link href="<%=basePath%>build/css/custom.min.css" rel="stylesheet">
<script src="<%=basePath%>vendors/kindeditor/kindeditor-all-min.js"></script>
<script src="<%=basePath%>vendors/kindeditor/lang/zh-CN.js"></script>
</head>

<body class="nav-md">
	<div class="container body">
		<div class="main_container">
			<div class="col-md-3 left_col">
				<div class="left_col scroll-view">
					<div class="clearfix"></div>
					<br />
				</div>
			</div>
			<!-- page content -->
			<div class="right_col" role="main">
				<div class="">
					<div class="row">
						<div class="clearfix"></div>
						<div class="col-md-12 col-sm-12 col-xs-12">
							<div class="x_panel">
								<div class="x_content">
									<form name="myForm" class="form-horizontal form-label-left" novalidate 
						                  method= "post" enctype ="multipart/form-data" id="formUpload" > 
						                 <span class="section">新闻详情</span>
						                 <div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">新闻标题</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<input type="text" class="form-control"
													placeholder="" id="title" value="${news.title}">
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">来源</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<input type="text" class="form-control"
													placeholder="" id="from" value="${news.from}">
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">新闻日期</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<input type="text" class="form-control"
													placeholder="" id="date" value="${news.datetime}">
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">分类</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<input type="text" class="form-control"
													placeholder="" id="type"  value="${news.type}">
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">跳转地址</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
											    <a href="${news.url}" id="url">${news.url}</a>
											</div>
										</div>
										
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">图1</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<img alt="新闻没有图" src="${news.pic}" id="pic">
											</div>
										</div>
										<c:if test="${news.picsecond != null }">
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">图2</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<img alt="无图" src="${news.picsecond}" id="picsecond">
											</div>
										</div></c:if>
										<c:if test="${news.picthird != null }">
										<div class="form-group">
											<label class="control-label col-md-3 col-sm-3 col-xs-12">图3</label>
											<div class="col-md-6 col-sm-6 col-xs-12">
												<img alt="无图" src="${news.picthird}" id="picthird">
											</div>
										</div></c:if>
										<div class="form-group">
											<div class="col-md-12 col-sm-12 col-xs-12 col-md-offset-3">
												<a type="submit" class="btn btn-primary"
													href="javascript:void(0)"
													onclick="history.back(-1);">返回</a>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<script src="<%=basePath%>vendors/jquery/dist/jquery.min.js"></script>
		</div>
	</div>
	<!-- jQuery -->
	<script src="<%=basePath%>vendors/jquery/dist/jquery.min.js"></script>
	<!-- Bootstrap -->
	<script src="<%=basePath%>vendors/bootstrap/dist/js/bootstrap.min.js"></script>
	<!-- FastClick -->
	<script src="<%=basePath%>vendors/fastclick/lib/fastclick.js"></script>
	<!-- NProgress -->
	<script src="<%=basePath%>vendors/nprogress/nprogress.js"></script>
	<!-- bootstrap-daterangepicker -->
	<script src="<%=basePath%>vendors/moment/min/moment.min.js"></script>
	<script
		src="<%=basePath%>vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
	<!-- Chart.js -->
	<script src="<%=basePath%>vendors/Chart.js/dist/Chart.min.js"></script>

	<!-- Custom Theme Scripts -->
	<script src="<%=basePath%>build/js/custom.min.js"></script>
</body>
</html>